#pragma once

#include "lib.h"

// Data struct for storing a result values range
typedef struct ResultRange
{
	int32 min;
	int32 max;
} ResultRange;

class GameForcedResults
{
	public:
		GameForcedResults();
		~GameForcedResults();
		
		bool8 load(String results);
		bool8 getNext(int32& result);
		int32 getTotal();
		bool8 isEmpty();
		void  resetIndex();

	protected:
		int32 encodeResult(String decoded);

		int32       current;
		ResultRange range;
		int32*      results;
		int32       total;
};
